package com.cityeye.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Patrol entity. @author MyEclipse Persistence Tools
 */

public class Patrol extends com.cityeye.util.IEntity implements
		java.io.Serializable {

	// Fields

	private Integer id;
	private Department department;
	private String name;
	private String mobile="";
	private String homephone="";
	private String mobile2="";
	private Integer age;
	private Integer gender=1;
	private String addr="";
	private Set mmessages = new HashSet(0);

	// Constructors

	/** default constructor */
	public Patrol() {
	}

	/** minimal constructor */
	public Patrol(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	/** full constructor */
	public Patrol(Integer id, Department department, String name,
			String mobile, String homephone, String mobile2, Integer age,
			Integer gender, String addr, Set mmessages) {
		this.id = id;
		this.department = department;
		this.name = name;
		this.mobile = mobile;
		this.homephone = homephone;
		this.mobile2 = mobile2;
		this.age = age;
		this.gender = gender;
		this.addr = addr;
		this.mmessages = mmessages;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getHomephone() {
		return this.homephone;
	}

	public void setHomephone(String homephone) {
		this.homephone = homephone;
	}

	public String getMobile2() {
		return this.mobile2;
	}

	public void setMobile2(String mobile2) {
		this.mobile2 = mobile2;
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getGender() {
		return this.gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Set getMmessages() {
		return this.mmessages;
	}

	public void setMmessages(Set mmessages) {
		this.mmessages = mmessages;
	}

}